package com.xuhuan.example.example064;

/**
 * @author: huan.xu
 * @create: 2023/11/14 10:59
 * @description:
 **/
public class Example064 {

    public static void main(String[] args) {
        System.out.println("GIF格式保存");
        ImageSaver imageSaver=TypeChooser.getSaver("GIF");
        imageSaver.save();
        System.out.println("PNG格式保存");
        imageSaver=TypeChooser.getSaver("PNG");
        imageSaver.save();
        System.out.println("JPEG格式保存");
        imageSaver=TypeChooser.getSaver("JPEG");
        imageSaver.save();

    }
}
